Generate devices controller