Added a Potentiameter adaptable code