Change the type of ’function’ field from string to char*