Check main method