Fixing warnings about unused variable.