Initialize variables in the constructor.