Added modes for Mobile API so that new app can do a testing mode.