Implemented compareWithLastVersion