Initializes variables