Add index() method, enhance ul() method.