Added necessary files and functionality for the console! Also only enabled in debug.