Creted private mehtods.