Completed initialisation code