Sample management script draft