Add optimizations for mobile devices (WIP)