Updated fragments to use constants when handling results.