Fixing main method