Adapt init() to latest API