Improved clipboard handling.