Initialized all the variables.