Getting errors when sending response. Trying to fix.