Added more outputs; interrupt switching