Add clone and update to lib