Works, but needs cleanup
Looks like working, does well even for descending parameters.
Merge branch 'feature/tercja' into develop