Separated library and main program.