Debug code for mobile pt 2