Keep die check at top of file