Updated to allow running on webOS