To devise or plan something is to contrive it.