Main method moved