This code has friends all over the place.  A little fried might be nice, especially after all this coding :)