Fix missing argument in function
Make helper functions private again.