Need to pass variable into closure.