Modular implementation.