Fixed a few errors. Built on pi.