Cleaned up watchdog and added missing #! line.