Added save position functionality.