Edit server to minimize crashes. Add input parsing from Pi to phone (untested).