Modularized subplots and added plot4