Add path extrusion and move the code to a separate file.