Implemented saving on command.