Fixed pointer test.
Added '\r' support.