Implement leveled list script functions (Fixes #1546)