Finished porting code. Works, but has excessive MOVE CARs. 

TODO: Add some means of authentication.