Multiple users handling and cleaning up the code