System preparation script