Allow mode to be set on frontend
Merge pull request #6 from scottrobertson/patch-4

Allow mode to be set on frontend