Implementation for S3 polling (warning not stable)