Add new intermediate variable in dynamic models