Added callback option to invoke when data is retrieved