Added XHR in other method