Added clone function to messages