Performance improvement.

This code uses only one assignment statement.