Removing warning from unused variables