Modularizing and input validation.