Extension of freevars query.