Moved agent, and implemented password checking