Add support for multiple name/event in local and space functions