Made the methods for sending responses to program