Changed how data is fed to the trainning program.