Removed warnimg unused variable