Eliminated all warnings about unused variables