Initial port of code and file from my original personal repo.