Moved hook stuff into RantEngine class