Printing is done form main