Cleaned up indent and fixed nested brackets.