Removing last occurrence of an unused variable. Thanks