Added build file, and main function.