Replace stub with real implementation.