Moved minimum ls calc