Pass the pinging responsiblity to consumer from api.