Added useLazy optimisation to toSeq