Added gradual increase in number of basis functions