Added load_labs function