Ugly but necessary