Implement functions for vars, fixes