Extracted some variables.