Complete primary implementation.