Added ls flavor detection