Added edit and update features.