Add position() method.
Fixed a small bug.