Add die() + those checks don't need to be in a subshell.
Move nice around and silence it.