Added check for lvalue correctness.