Interfaces for testing.