Reduce duplicated code by using a function to handle the starting of the template