Add an onReady method to Session