Main method started