Made train.py work with new jitter module