Added edge points rejection