Add debugging functions and developer mode