Reduced depth resolution also works for trell. Some cleanup needed.