Added handler for results.