Adds automatic function name generation