Wrapping callbacks instead of using prerun event.