Added fast 0 mode and simplified adjusting depth factor.