Used some coffeescript constructs