Added continiuos loop to avoid HTTP connection crashes