Made some fixes to the parser and started on the sending functions.