Removed unused failureCallback function.