Implementing compareWithLastVersion, still problems