Iphone test and optimization