Initial commit of old exchange code.