Improves formatting, debug for bad key