Made some member functions const.