Updated the script to automate the frequency of labels on graphs.