Adapted to meteor 0.8.0