Issue #36: Step five implementation. Debug complete. Resolved issue with removing empty discount template list.