Merge raster code to one file, add stack pointer copy magic.