Added conditional statments for user interactivity and input