Removed unused variable to get rid of warnings.