Fixed bug where output design was being saved for every reference. Reduced runtime over 90% on files with large reference lists.