Allow mode to be set on backend
Merge pull request #7 from scottrobertson/patch-5

Allow mode to be set on backend