Forgot some curly braces, hate indented fors