Added optional slug matching via settings option