Added functionality for analog ports hooked up to the BC; untested