Initial idea for modify and close. Working on checkpoint