Add function for storing the reason trail of an instance