The logic is based on the previously used shell script implementation. Co-Authored-By: Robin Weiligmann <admin@robwei.me>