Replace unsigned long everywhere with FrameNumberValueType. Should also have long as FrameOffsetValueType