Removing warnings about unused variables and unused variables themselves