Well, I wanted to do it all in one program, but I guess I could break it up into two separate programs. I'll have to think about what I'm really trying to do.
Another issue is precompilation. I need to find out how to work around that somehow. Otherwise I would need two separate modules instead of the single one I'm currently using.