Move API (sort of, I didn't want to dump a load of code here).