Implemented better join method.