Script for sending requests to cortex.