Change function access from public to private for helper functions