Cortex: Making automation simple, one block at a time