Only committing so I can get new updates. This chain function is still buggy.