Removing nc dependency by using -W flag