Implemented generator for getting data and dynamic plotting