Added assemble() function.