Addressed var issue from the comment