Handle errors
Add SDF structure search