Removed unused variable that was throwing an error