Add method to fetch the global object