Added tick(), init_tick() and frame_number.