Updated speed program with new indentation