Taking out lsfactor