Added handlers for port testing and pinging