Adding ready state listener

Change-Id: Ie8b345cc1f433d7cc1dbbd9cf9d8cca5afd78328