Added missing const-qualifiers.