Splitted up the parsing and respond logic