Added save point to commands (to check if there is pending changes to be saved)