Added analog mode initialization