Added setting z reference