Added remaining message types to getResponse and added handler functions.