First version of the mktemp step