Implemented delete detection