Added a callback function so we can access the data when it's loaded