Multiple template instances working