Removing duplicates from vm functions