Fixing entry function.