Moved classwide variables into init method to avoid overwrites.