Adjusting get_param if no key is given
Adding some logging