Implement loops, comments, and memory pooling