Properly get function name