Check if we've disabled history, plus a new hook for modules