Added user function calling and nested scopes.