More debug messages, added app id