Added file and Input If Statements