Updated pibox to allow synchronous iterators.