Helper functions are now hoisted