Was supposed to use index rather than time here..