Added the 'on' prefix for afterAttach and beforeAttach callbacks