using PDFInclude in subprograms?

I have a need to open a stream using PDFInclude in a main procedure, but actually build the document in a subprocedure. Can this be done with the standard PDFInclude files, and if so, what include files do I need to include in the subprogram? Please let me know ASAP folks! Thanks!