Cleaned up code removing previous attempts to run display data function.