Code and stuff for exchanges.