Modified 19.13 solution.