Prefix support in generator, fixed #15.