Adjusted for clang compatibility.