Added a preference to enable/disable depth