Changed generate method name