Added a check to make sure that a necessary child function was defined