Generalizing Reproduce.R