Changed a char* parameter to const char*