Fixed problem with missing intermediate variable.