Added builtin generator functions. Not 100% sure they're correct, tbh.