Made command dispatch very simple in comparison to old version, and changed script to reflect new loader.js