Added console for the variable outside the function