Fixing data functions.