Added directions to structure detection