Removed unused variable to fix a compiler warning