Removed code that was only for terminal debug testing