Added synchronization for learning H/P