This function shouldn't to be here.