Turning the initial request into an annonymous function.