Added analog referencing