Included option to run on separate training and test data