Refactoring: Now NIL is secd->nil, not NULL