Changing define_singleton_method to instance method, adding traversal endpoint spec