Added logging; fixed crazy octal bug.