Moved request logic to library project.