Added 'if' to exec.