Finally got methods working. That was quite a bit of work, and will need significant refactoring.