Added code to debug instruction execution