Ensuring const-correctness