Add basic logging support
Add instruction logging