Added ability to clone instances