Replaced pointer declarations with array declarations