Separated out level-init functions