Change parameter orders to make code more clear.