Part of generator and their functions.