Separate section and support "txt" files too