+ Main functions.