Clipped smaller functions into template