Finished porting to coffeescript