Changed factors' independent variables to be copies on the heap.