First add of main functions.