Add support for Z offset machine setting
Fixes issue #6