Changed motorIO from files to streams