Changed optimizer param to use text