Set generate method to static