For future reference, you should just keep the conversation in one thread rather than posting a new thread. This thread contains the code in question and I’ve messaged Quark (the author of G4P) to take a look. Splitting your question between multiple posts makes it harder to follow everything.
In any case I’m sure Quark will help you when he sees this.