Added basic error checking when pasting...