Getting rid of an unused variable