Now it works but only with the new way of formatting input file.