Added library enabling logic