Analog i/o & cleanup