Modularized client code.