Fixing mindapi.pp to use vars