Prepare script