Updated experiment code to do random assignment to conditions