Refactored onAttach to a Abstract baseclass