Added ability to change max params