Credited Matija for lf_obid.c