Add entry point guards