Improved output for train function