Add data save mechanism.