Added wireless support and some other fixes.