Modularize code.