Added get_params function.