Changed main frame
Modified main method