Removed the line which set the pot to zero.