Copied from gitignore (probably suboptimal method)