Added configurable key formatting.