Splitted imaxk for easier debugging