Added library load check