Removed debug console.log and now pass the app name instead of object into message function