Removed variable shadowing global one.