Extra functions and var operator fixes