Changed Submit to Generate