Added class to share data between frames