Removing warning on unused variable