Added check that function parameters must be const