Revert "Remove unecessary variable"

Variable is used below

This reverts commit 010639a89ba4ebdd1267274e8c0dcfc6d474ce03.