Adding emulation check and memory dump