Updated forms templating functions.