Template now works as intended