Thanks, that worked ok for me and I can just use that in my design. Still can't see why it wasn't working for me, but it doesn't matter too much.
Now I just need to make a rack to fit the gear and I'm all set, but hopefully that shouldn't be too difficult.