Convert STARTING_FRAME_OFFSET to a hook