Make generator periodical