Updates
1. Simulate execution step in generator.
2. Use new memory usage counting method