Initializing refs to 0