Trying to strike that delicate balance between code that covers a wide variety of edge cases, and code that is simple and easy to validate.