Implemented join functionality