Making function out of plotting code, BLS array saving changes.