Back prop time delay code