Move template functions to actual template file