Yes, I modified the rewrite rule yesterday morning to account for lower levels. Since writing code is not my forte, I took most if it from the 2 fragments discussed in the howto.
I believe the logic is sound and from my limited testing, I have found no problem.
Ray's code can also be used for non ibay custom-templates fragments.