Fixed insert pattern script, fixed emulator putting CUP to 100% when listening to machine