Changed the memory to the correct size, and seperated the handling of the dest and src in step.