Derivative calculations have been reengineered and are extracted differently now. Also, need to add the random effects module.