Added mobile detection