I created a thread several years ago that documented my quest to figure out what you're trying to do. I don't think it will give you everything you need, but it might help you see what's going on by looking at the cifl rom, which is what i looked at to see the differences in code. I think jstout made an excellent thread that explains what all of the code is doing, so you should try to find that one as well.