Added dead check

Closes #11