Make overlay name a parameter of the class used
Simplify? processCmd