Added check to the main method signature