Ported the proced to IcedCoffeeScript