Reordered params according to config and changed some defaults.