Adjusting get_template function to meet feedback

According to Alex, this function should not be modified...