Added dbg to open.c