in reply to Problem sorted out!
in thread How can one use the print function to get the correct information?

Why separate thread ?
Please mark same thread as solved and update solution..