Export build function