Support constructor injection