Translated to CoffeeScript