Added applicationState debugging logs