Latest bug fixes. This one works for storing an dediting records.