Converted to coffeescript.