More descriptive function names might be useful here, e.g. createUser, createDevice,etc.