Translated to CoffeeScript.