Added spiral method, generator can be changed.