Slabs are a pain... copied most of this from the vanilla class. Closes #232