Combined custom and default templates into one function. Attempted using pv boot to boot from http which failed.