Adding instruction generation loop.
Not yet doing anything, but close.