Added functionality to respond to requests