Move proxy fecth in its own function