Changed order of operations.