How to put together a function Warning + Copy Function