Added some code for merging and creating bar graphs.