Added toTab method mainly