Added build function