Prepare script: actually follow segment size parameter..