Add muon emulation code