Creating a custom device