Added check for entry function name