Script created, I also fixed two other ad-hoc scripts that weren't working after migration to Kernel.