Move request code above response