Some debugging and messing around with plots.