Added const qualifier for pointer arguments