Added a mutex around the Array that gets constructed and returned after a request is run