Added more error handling and plot reset on bank switching.