Fixed FOR loops and added octal characters