Added copy functions

Added some useful copy operations.