Added connect event