Add scratchpad functionality