Implemented generator for testing