Netword: add generate method.