[BF] Stop reseting variables then passing to inner function