Implemented 'ps' command.