How to use Copy and Scan function