Remove unused code.
Add missing imports.
Set a Z slice.