Added const to some char pointer arguments.