Added template directory and now have last item in array mapping