Avoid mutable local variables