Modified a bit to adapt to mobile