Added logging, removed all die, exit, var_dump or print_r