Created toggle switch for printing value.