Added code that approximates our environment to repro the issue.