Generate the prologue statements

Initial statements have been generated. Now we need to find a way to
put them at the right place.

See #60.