Changed variable to instance variable.