Implemented some basic bond recognition