Added `init` function