Implemented next command.