Add scratchpad functionality. Add Content-Type handling.