Add the beginnings of chain functionality