Put calculations and calls into successCallback