Moved function to private directory