Fix helper function not being exported correctly