Recreated old CharmTemplate stuff