Code to get the outline for further processing