Added clone and removed space in function.