Phonegap optimized.