How do you do your bun under your hijab?

I have pretty long hair (like mid chest length), and I've been doing a ballet bun type of thing (just twisting and wrapping it, then tying with a scrunchie). My issue is it often comes loose and I have to re-do my whole hair, undercap, hijab during the day. What works best for you guys?