Snapshot of own implementation - handleCommand is not at all deprecated
Birthday function reimplemented