Deleted unnecessary parameters and bugfix to extract ip address.