Changed parameter to const