Added the ability to recieve different kinds of commands on serial.