Debug macros added (checks sending logs)
Switching die function to check debug macro.
Changing die to check in switch statement.

Maybe a small overuse.