Added working proper dihedral checker.