Added functionality for jacobian loop
Modified jacobian instantiation