Implemented generator functions