Added callback function to perform on returned value.