Un-commented code to add the start and end locations