Got error viewlog to actually work correctly, now time to clean everything up