Hacking for multiple template ids (WIP)