I know you just copied code over, but I'd be a fan of refactoring this to use autoload (rather than requires).