Added getId() to debug messages.