Added working if stmts.