Initialise repository