Optimized code for Tablets