Add saveMark method and optimise code for save.