First draft of request logic (WIP)