Finish the ls api