Code refactor on the gpu requests