Added clone and checkout implementation