Edited some stuff to be more efficient, will be doing channel logging soon.