Removed from_line_number option and added hit_rank limitation.