Moved ls to a library