Move overload IIFE to own file
Comment functions
Simplify device overload