ameezys has asked several questions about this code (beginning here) which may be worth reviewing given your question. Also:
In reply to Re: print Output by marto in thread print Output by nursyza