Add load_packages and template