Add equals
Workaround deprecated method
Synchronize to prevent ConcurrentModificationExceptions