Takes into account prefix length