Executing a function in temp namespace.