LazyCat's Solution For Multiple Z Levels

I'm not familiar with the code, I'm just submitting it for him.