Basic operations now working, had some issues with the switch in CoffeeScript.