Network functions

Replace network inline_templates with custom module functions.