Added extra debug statements in main method