Work on structure detection