Chain functions in a (probably) terrible way