Reimplement get lines