Converted the code to spydroid source code.  Still needs work.