Add const qualifiers to function declaration