Removed variables that are not referenced to avoid warnings