Move unused plotting function to the bottom