Final rewrite of project LeIRC