Implemented saving conditions.