It's ugly but it works.