Improving the get_address() function