Added build function.