Improve ircgate; less printf