Implemented a flag-protected plot and added metadata