modified PostUpdate methods, and made minor modifications.