Changed the var interchange to be more pythonic.