Use the file name as the default method name. Fixes #3.