Split igor.lua who was too long with too many different things mixed.