Add {} to if statements on tschaible's advice