Review for Fritz

There is a lot of duplicated code copied from `var build = funciont () {...}`. Refactor?