Added  option to choos how many inputs in a row