Added callback to the status function.