Some tweaks to train script