Removed dependence on err.h