Function createSynchronousEnvironment