Ugly but working var