Make initialisation function.