Updated the getWorkQueueSize to the new API
Removed deprecated methods from Peer