On Entry function is now actually called