Implementing chain creation