Testing with Emulator
Added flags to applayer