Fixed #4 more correctly than #6
Also corrects terminology: tail not train.