Also, is it necessary to malloc here?