Debug code for mobile