Fixes the -1 bug and adds additional debugging information to the logging tool
Better logging naming