Can now reset objective function.