Put in code from loading message branch.