Implemented locking for the default methods