Fixed main method