Adding simple debugging functionality