Use interface for testing.