Acknowledged the contribution of the deck exporter code from @shyos