Extracted some file generators