Renamed success and failure functions.