Added createTemporary() method.