Preparing entities is now triggered when they are attached to a message.