I'm want to add subprograms to my post processor.

As the supplied post didn't support subprograms, I've started to change the standard MPFAN post to suit. This has worked very well so far but I'm having to move the subprograms from the end of the G code program upto the start of the program manualy.
I would really like to change this to it automaticly in the post.

Any help would be greatly appriated

Cheers

Chris