Implemented revert method on model.