Developed function to get section type.