Quick'n'dirty fix for generator
Use up/down method instead of change
Revert "Use up/down method instead of change"

This reverts commit cbd7ea25ada0ab5b7d3ed6cddfab83420a0458cf.
Merge pull request #1 from zzk/master

Quick'n'dirty fix for generator