Implemented most of the manager's command using the new "lib" (still work in progress)