Main method, part of printing