Algorithm by Fabrik