Request object now sends xml element to functions