Added tab_len to lib