Scratchpad and space code now flexible