Changed input initialization order