Added endTime to APIConnection class