I forgot to mention this yesterday but I have indented the control statements now.