Removed -a parameter and added getting hostname from socket.