Some minor changes in codes.