Streptococcus pneumoniae is an encapsulated gram-positive bacterium. What is the function of capsule in disease pathogenesis?.