Revert "Remove unecessary variable"

This var is used below

This reverts commit b91d0be3863d55bbfe9a31d855b4a2aedae34d92.