Added LED stuff and a mux function