Scripts for replotting if needed