Make data add and save work.