Replaced sprintf functions in parameter reordering.