Update README.md and helper function