Complete rewrite of the request procedure to bog's script