Make layout algorithm choosable