Various optimizations

Re-added chat commands