Now everything works fine, except the output