Use USE_SYSTEM_VREEN instead SYSTEM_VREEN.
Remove extra blank lines
Fix more style issues.
Fix duration overflow.