Changed Ls from local variable to public variable