Implemented the public foreach API funcs. They SHOULD work, but I have nothing to test them with yet.