Console application entry script fixed.