Fleshed out createDevice function