- Removed unused virtual method
- Moved foreach logic to codegen