Included basic macro mode, and commented out code for Analog mode