Add fill_container function

Hello,

See ticket #65 for explanations.