Adding the extruder definition and moving some things around seems to have solved the problem. Thanks.