Added a little bit of const correctness.