Refactored instruction execution. Added some controls.