Made getData function not be so fucking slow.