Added __method variable to indicate if it is a save or update action