Implement result-handling.