Added user input capabilities and incorporated them into run