Re-wrote EMC handling from scratch. Seems to be working better now