Speed ups to the project creation helper function, but changing the method for random and stratified sampling.