Cluster balancing introduced. Login/Logout implemented. Refactoring.
Refactoring. Error handling.