Logic templates wip