Tried regeneration, edit to not use deprecated methods.