Copy code from exchange plugin