added configurable maximum angular diff