Fixed for bugs with the curly brackets.