addPrototypes - What is the 'encode' parameter used for?