Ported to Meteor 0.6.