Cleaned up chain example.