Sometimes writing a program causes brilliant solutions.