Add Helper function and modify .gitignore