Reimplemented foreach