Added unjoin, added loop, cleaned up code