Fixed bug involving declaring variables within conditionals and loops.