Added brackets and indented foreach