Removed state locking and subscription callbacks from doc