Add current_library method