Add some ugly but work code.