Appendix D: Adding Bells and Whistles to the Training Loop