Successfully implemented a singleton to pass data