Implemented command dispatcher using globals()