Adding optional scope parameter for callback invocation.