Changed how commands are handled. Added a join command