Added IF Statements