Created charges using a macro to avoid duplication in the template