Changed code and structure to run on Azure development emulator