Simplified ON/OFF switch statement
Combined process() and process_channel()