Template is now working as intended