Removed -Ounchecked compilation since unlikely to trigger crashes.
Simplified script.