Added build freehand function, and remaining parameter conversion functions.