Formated the code. Corected missing bracket.