Extended to allow varlists, added prefix/suffix features