Made extruding a function to ease further dev.