Here is a subpart vesion of the 4053. While not as good as it could be, code changes would be needed to do better I think.
4053.fzpz (10.8 KB)
edit: and because it is the simplest of the lot, the 4017:
4017.fzpz (8.7 KB)
Peter