Added generatesolved