Set mode
Merge pull request #2 from tnm/master

Set mode