Implemented check for optimistic concurrency for updates and deletes.