Script now is intended to be run as an executable that sources a script given through the hook function