Complex sentence: The medication works, enabling Emily to function normally, although she has occasional sleepwalking episodes as a side effect.
Split into simpler sentences: The medication works, enabling Emily to function normally. She has occasional sleepwalking episodes as a side effect.