Fixed booleans in syntax. Added for loop to syntax.