Added consistent update flag. Reformatted.