Added handler for creating and sending results.