Add support for entrypoint hooks