Add an action to hook into.