Turned the spaghetti code into... lasagna code?