Run hooks: continue to support the previous method

Existing scripts will continue to work with this modification.