Initialise variables to prevent crash