Accepts commands A, R, and P. Sends data in correct format.