Fixed depth calculation math and improved start gate task.