Checked implementation of undersegmentation error