Make better register template