Add endtime field