I would suggest putting the area outputs in the initial if statements with asking fr the base that might make it easier to look at.