Updated to new blockgenerator api