Fixes some bugs in smartphone support. It still needs a lot of improvement.