Add setters and fix some methodmap bugs.